<template>
	<view>
		<view class="detail">
			<rich-text :nodes="detail.content"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				app: getApp().globalData,
				detail: {}
			}
		},
		onLoad(e) {
			this.app.post('/api/chef/user/user_xieyi', {
				id: e.id
			}).then(res => {
				console.log(res)
				this.detail = res
				uni.setNavigationBarTitle({
					title: res.title
				});
			})
		},
		methods: {

		}
	}
</script>

<style>
	.detail {
		padding: 30rpx;
	}
</style>